package com.nbcio.online.service;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nbcio.common.mybatis.core.page.PageQuery;
import com.nbcio.common.mybatis.core.page.TableDataInfo;
import com.nbcio.generator.domain.GenTable;

public interface IFormService {

	Map<String, Object> getOnlineForm(Long tableId);

	TableDataInfo<GenTable> selectPageGenTableList(GenTable genTable, PageQuery pageQuery);

	TableDataInfo<Map> listOnlineData(Long tableId, String tableName, PageQuery pageQuery);

	int addOrUpdateOnlineData(Long tableId, String tableName, Map<String, Object> map);

	void deleteOnlineData(Long tableId, String tableName, List<Long> ids);

	Map<String, Object> getOnlineData(Long tableId, String tableName, Long id);

    // 动态表分页查询
    TableDataInfo selectDynamicTablePage(String tableName, QueryWrapper<?> wrapper, Page<?> page);

    // 动态表单条查询
    Map<String, Object> selectDynamicTableById(String tableName, String id);
}
